body {
    font-family: Arial, sans-serif;
    background-color: #f2f2f2;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    flex-direction: column; /* 允许垂直居中 */
    height: auto;
}
.container:first-child{
    margin-top: 5%;
}
.container:nth-child(2){
    margin-bottom: 5%;
}
.container {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 400px;
    text-align: center;
}

.container h1 {
    margin-bottom: 20px;
    font-size: 28px;
    color: #333;
}

.container p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #555;
}

.container label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}

.container input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    font-size: 14px;
}

.container input[type="text"]:focus {
    border-color: #007BFF;
    outline: none;
}

.container button {
    width: 100%;
    padding: 12px 0;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.container button:hover {
    background-color: #0056b3;
}

.error-msg {
    color: red;
    margin-bottom: 15px;
    font-size: 14px;
}